Optimal. Leaf size=91 \[ \frac {2 a^4}{d (a-a \sin (c+d x))}+\frac {a^3 \sin ^3(c+d x)}{3 d}+\frac {3 a^3 \sin ^2(c+d x)}{2 d}+\frac {5 a^3 \sin (c+d x)}{d}+\frac {7 a^3 \log (1-\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2707, 77} \[ \frac {a^3 \sin ^3(c+d x)}{3 d}+\frac {3 a^3 \sin ^2(c+d x)}{2 d}+\frac {2 a^4}{d (a-a \sin (c+d x))}+\frac {5 a^3 \sin (c+d x)}{d}+\frac {7 a^3 \log (1-\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 2707
Rubi steps
\begin {align*} \int (a+a \sin (c+d x))^3 \tan ^3(c+d x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^3 (a+x)}{(a-x)^2} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {\operatorname {Subst}\left (\int \left (5 a^2+\frac {2 a^4}{(a-x)^2}-\frac {7 a^3}{a-x}+3 a x+x^2\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {7 a^3 \log (1-\sin (c+d x))}{d}+\frac {5 a^3 \sin (c+d x)}{d}+\frac {3 a^3 \sin ^2(c+d x)}{2 d}+\frac {a^3 \sin ^3(c+d x)}{3 d}+\frac {2 a^4}{d (a-a \sin (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 66, normalized size = 0.73 \[ \frac {a^3 \left (2 \sin ^3(c+d x)+9 \sin ^2(c+d x)+30 \sin (c+d x)+\frac {12}{1-\sin (c+d x)}+42 \log (1-\sin (c+d x))\right )}{6 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 104, normalized size = 1.14 \[ \frac {4 \, a^{3} \cos \left (d x + c\right )^{4} - 50 \, a^{3} \cos \left (d x + c\right )^{2} + 31 \, a^{3} + 84 \, {\left (a^{3} \sin \left (d x + c\right ) - a^{3}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - {\left (14 \, a^{3} \cos \left (d x + c\right )^{2} + 55 \, a^{3}\right )} \sin \left (d x + c\right )}{12 \, {\left (d \sin \left (d x + c\right ) - d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.18, size = 205, normalized size = 2.25 \[ \frac {a^{3} \left (\sin ^{7}\left (d x +c \right )\right )}{2 d \cos \left (d x +c \right )^{2}}+\frac {a^{3} \left (\sin ^{5}\left (d x +c \right )\right )}{2 d}+\frac {7 a^{3} \left (\sin ^{3}\left (d x +c \right )\right )}{3 d}+\frac {7 a^{3} \sin \left (d x +c \right )}{d}-\frac {7 a^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{d}+\frac {3 a^{3} \left (\sin ^{6}\left (d x +c \right )\right )}{2 d \cos \left (d x +c \right )^{2}}+\frac {3 a^{3} \left (\sin ^{4}\left (d x +c \right )\right )}{2 d}+\frac {3 a^{3} \left (\sin ^{2}\left (d x +c \right )\right )}{d}+\frac {7 a^{3} \ln \left (\cos \left (d x +c \right )\right )}{d}+\frac {3 a^{3} \left (\sin ^{5}\left (d x +c \right )\right )}{2 d \cos \left (d x +c \right )^{2}}+\frac {a^{3} \left (\tan ^{2}\left (d x +c \right )\right )}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.30, size = 72, normalized size = 0.79 \[ \frac {2 \, a^{3} \sin \left (d x + c\right )^{3} + 9 \, a^{3} \sin \left (d x + c\right )^{2} + 42 \, a^{3} \log \left (\sin \left (d x + c\right ) - 1\right ) + 30 \, a^{3} \sin \left (d x + c\right ) - \frac {12 \, a^{3}}{\sin \left (d x + c\right ) - 1}}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.46, size = 262, normalized size = 2.88 \[ \frac {14\,a^3\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-1\right )}{d}+\frac {14\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7-14\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+\frac {98\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{3}-\frac {100\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{3}+\frac {98\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}-14\,a^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+14\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )}-\frac {7\,a^3\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a^{3} \left (\int 3 \sin {\left (c + d x \right )} \tan ^{3}{\left (c + d x \right )}\, dx + \int 3 \sin ^{2}{\left (c + d x \right )} \tan ^{3}{\left (c + d x \right )}\, dx + \int \sin ^{3}{\left (c + d x \right )} \tan ^{3}{\left (c + d x \right )}\, dx + \int \tan ^{3}{\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________